crea
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<link href="css/mui.min.css" rel="stylesheet" />

		<style>
			ul {
				font-size: 14px;
				color: #8f8f94;
			}
			
			.mui-btn {
				padding: 10px;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav" style="padding-right: 15px;">
			<a href="main.html" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">发放兑换券</h1>

		</header>
		<div class="mui-content">
			<div class="mui-content-padded">
				<div class="mui-input-row">
					<label>数量</label>
					<div class="mui-numbox" data-numbox-min='1' data-numbox-max='100'>
						<button class="mui-btn mui-btn-numbox-minus" type="button">-</button>
						<input id="count" class="mui-input-numbox" type="number" />
						<button class="mui-btn mui-btn-numbox-plus" type="button">+</button>
					</div>
				</div>
				<div class="mui-input-row">
					<label>积分面额</label>
					<div class="mui-numbox" data-numbox-step='100' data-numbox-min='0' data-numbox-max='9999' style="align-items: left">
						<button class="mui-btn mui-btn-numbox-minus" type="button">-</button>
						<input id="points" class="mui-input-numbox" type="number" />
						<button class="mui-btn mui-btn-numbox-plus" type="button">+</button>
					</div>
					</ƒdiv>
					<div class="mui-input-row">
						<label>券名</label>
						<input id='ticketName' type="text" class="mui-input-clear mui-input" placeholder="请输入兑换券名">
					</div>
					<div class="mui-input-row">
						<label>渠道号</label>
						<input id='platformId' type="text" class="mui-input-clear mui-input" placeholder="请输入渠道号">
					</div>

				</div>
				<div class="mui-content-padded">
					<button id='create' onclick="create()" class="mui-btn mui-btn-block mui-btn-primary">提交</button>
				</div>
				<div id="info"></div>

			</div>

		</div>
		<nav class="mui-bar mui-bar-tab " id="nav">
			<a class="mui-tab-item mui-active" id="a1">
				<span class="mui-icon mui-icon-home"></span>
				<span class="mui-tab-label">首页</span>
			</a>
			<a class="mui-tab-item " id="a2">
				<span class="mui-icon mui-icon-email"></span>
				<span class="mui-tab-label">消息</span>
			</a>
			<a class="mui-tab-item " id="a3">
				<span class="mui-icon mui-icon-person"></span>
				<span class="mui-tab-label">我的</span>
			</a>
			<script src="js/mui.min.js"></script>
			<script src="js/app.js"></script>
			<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
			<script src="https://cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
			<script src="https://cdn.bootcss.com/layer/3.0.1/layer.min.js"></script>
			<script type="text/javascript" src="js/common.js"></script>
			<script>
				//mui初始化
				mui.init({
					swipeBack: true //启用右滑关闭功能
				});

				function create() {

					var info = document.getElementById("info");
					var btnArray = ['否', '是'];
					mui.confirm('是否生成券码？', '系统提示', btnArray, function(e) {
						if(e.index == 1) {

							var count = document.getElementById("count").value;
							var points = document.getElementById("points").value;
							var ticketName = document.getElementById("ticketName").value;
							var platformId = document.getElementById("platformId").value;

							if(ticketName == "" || ticketName == null || ticketName == undefined) {
								mui.toast('请输入兑换券名');
								return;
							}

							if(platformId == "" || platformId == null || platformId == undefined) {
								mui.toast('请输入渠道号');
								return;

							}

							var paramStr = {};
							paramStr.count = count;
							paramStr.points = points;
							paramStr.ticketName = ticketName;
							paramStr.platformId = platformId;
							var params = {};
							params.paramStr = JSON.stringify(paramStr);

							console.log(params);
							Common.ajaxWithParam("/fenful/api/v1/common/batchCreate", params, function() {
								mui.toast(' 生成' + count + '张券码成功！！');

							})

						} else {

						}
					})

				}
			</script>

	</body>

</html>